package com.xmut.DengLu;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class ZhuCe extends JPanel implements ActionListener{
	private int yue;
	private String zhanghao,mima,xingming,youxiang,shoujihao;
	private JLabel zhanghaolabel,mimalabel;
	private JLabel xingminglabel,youxianglabel,shoujihaolabel;
	private JTextField zhanghaokuang,mimakuang;
	private JTextField xingmingkuang,youxiangkuang,shoujihaokuang;
	private JButton zhuce;

	public ZhuCe(){
		zhanghaolabel = new JLabel("账号：");
		mimalabel = new JLabel("密码：");
		yue = 0;
		xingminglabel = new JLabel("姓名：");
		youxianglabel = new JLabel("年龄：");
		shoujihaolabel = new JLabel("手机：");
		zhanghaokuang = new JTextField();
		mimakuang = new JTextField();
		xingmingkuang = new JTextField();
		youxiangkuang = new JTextField();
		shoujihaokuang = new JTextField();
		zhuce = new JButton("注册");
		zhuce.addActionListener(this);

		this.setLayout(null);//不使用布局
		zhanghaolabel.	setBounds(30,20,300,30);
		zhanghaokuang.	setBounds(75,20,300,30);
		mimalabel.		setBounds(30,60,300,30);
		mimakuang.		setBounds(75,60,300,30);
		xingminglabel.	setBounds(30,100,300,30);
		xingmingkuang.	setBounds(75,100,300,30);
		youxianglabel.	setBounds(30,140,300,30);
		youxiangkuang.	setBounds(75,140,300,30);
		shoujihaolabel.	setBounds(30,180,300,30);
		shoujihaokuang.	setBounds(75,180,300,30);
		zhuce.			setBounds(40,240,110,30);

		add(zhanghaolabel);
		add(mimalabel);
		add(xingminglabel);
		add(youxianglabel);
		add(shoujihaolabel);
		add(zhuce);
		add(zhanghaokuang);
		add(mimakuang);
		add(xingmingkuang);
		add(youxiangkuang);
		add(shoujihaokuang);
	}

	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub

	}
}
